projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60b927a
)
(dired-diff): Use `dired-dwim-target-directory'
author
Juri Linkov
<juri@jurta.org>
Sat, 1 May 2004 05:35:34 +0000
(
05:35
+0000)
committer
Juri Linkov
<juri@jurta.org>
Sat, 1 May 2004 05:35:34 +0000
(
05:35
+0000)
if current dired buffer has no buffer mark.
lisp/dired-aux.el
patch
|
blob
|
history
diff --git
a/lisp/dired-aux.el
b/lisp/dired-aux.el
index dbc3d7630408e357973130a2e18035fbb9af8e58..b31d20782f38f25e6a0ec75ffefb73747bcce678 100644
(file)
--- a/
lisp/dired-aux.el
+++ b/
lisp/dired-aux.el
@@
-64,7
+64,10
@@
With prefix arg, prompt for second argument SWITCHES,
(if default
(concat "(default " default ") ")
""))
- (dired-current-directory) default t)
+ (if default
+ (dired-current-directory)
+ (dired-dwim-target-directory))
+ default t)
(if current-prefix-arg
(read-string "Options for diff: "
(if (stringp diff-switches)